package com.grt.condify.dto;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.grt.condify.common.constant.CommonConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class BaseDTO {
    /**
     * "分页大小，默认10"
     */
    @ApiModelProperty(value = "分页大小，默认10")
    private Integer pageSize = CommonConstants.PAGESIZE;

    /**
     * 分页索引，默认1
     */
    @JsonAlias("PageIndex")
    @ApiModelProperty(value = "分页索引，默认1")
    private Integer pageNum = CommonConstants.PAGENUM;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间")
    private String endTime;


}

